import Vue from 'vue'
import App from './App.vue'
import router from './router'

Vue.config.productionTip = false
import Element from 'element-ui'
import "element-ui/lib/theme-chalk/index.css"
import 'bootstrap/dist/css/bootstrap.css';
import 'bootstrap/dist/js/bootstrap.bundle';


//设置项目样式为mini
Vue.use(Element,{size:"mini"});

import axios from '@/axios'
Vue.prototype.$axios = axios
Vue.prototype.$httpUrl=process.env.VUE_APP_SERVER
Vue.prototype.$httpUploadFile=process.env.VUE_APP_SERVER+"/file/upload/exam"
console.log("环境1",process.env.NODE_ENV)
console.log("服务器1",Vue.prototype.$httpUploadFile)
// console.log(process.env)

import { detectZoom } from '@/utils/detectZoom';
// 处理笔记本系统默认系统比例为125%或150%带来的布局影响
const m = detectZoom();
document.body.style.zoom = 100 / Number(m);

import CustomPages from "@/components/CustomPages";
import CustomDrawer from "@/components/CustomDrawer";
import CustomEditor from "@/components/CustomEditor";
//全局引入
Vue.component("CustomDrawer",CustomDrawer)
Vue.component("CustomPages",CustomPages)
Vue.component("CustomEditor",CustomEditor)

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
